<%@ include file="/include/taglibs.jsp"%>
<%@ page contentType="text/html; charset=UTF-8"%>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>订单管理</title>
<link href="${ctx}/css/orderForm.css" rel="stylesheet" type="text/css" />
</head>
<body>
	<%@include file="/include/head.jsp"%>
	 <!--页面中部内容-开始-->
	 <div class="common_wraper">
	 	<div class="winTopOuter">
	 		<div class="winTopInner"></div>
	 	</div>
	 	<div class="winContent">
	 	<form action="${ctx }/orderinfo/orderforminfoAction!createOrder.action"  id="createOrderForm">
	 		<div class="winTitle">
	 			请填写用户注册信息
	 		</div>
	 		<div class='statusImg_buyCar'></div><%--状态图片 --%>
	 		
	 		  <c:if test="${not empty orderCommodityList}">
	 		  	<div class='buyCarArea' id='buyCarArea' >
		 		  <table class="buyCarTable"  cellpadding="0" cellspacing="0" >
			 		  <tr class="tableTr"><td width="20px" ></td><td width="50px"></td><td>商品名称</td><td width="70px">单价(元)</td><td width="70px">数量</td><td width="70px">运费(元)</td><td width="70px">小计(元)</td></tr>
			 		    <c:forEach var="goodInfo" items="${orderCommodityList}" varStatus="i">
			 		      <tr class="orderFromInfo"><td ></td>
			 		      <td ><div class="orderCheckSpace">${i.index }</div><input type="hidden" name="commodityList[${i.index }].id"  value="${goodInfo.id}"/></td>
			 		      <td>${goodInfo.name}</td>
			 		      <td>${goodInfo.price}</td>
			 		      <td>${goodInfo.buycount}</td>
			 		      <td>${goodInfo.freight}</td>
			 		      <td class="amount">${goodInfo.price*goodInfo.buycount+goodInfo.freight}</td>
			 		       </tr>
			 		    </c:forEach>
			 		      <tr class="orderFromInfo"><td ></td>
			 		      <td >总计</td>
			 		      <td></td>
			 		      <td></td>
			 		      <td></td>
			 		      <td></td>
			 		      <td class="amount">${totalMap.totalAmount }</td>
			 		       </tr>
		 		  </table>
		 		</div>
		 		<div class="buyCarBtnDiv">
					<div class="btnDivInner">
						<a href="javascript:createOrder()" class="balance"></a>
					</div>
				</div>
	 		  </c:if>
	 		  </form>
	 	</div>

	 	<div class="winBottomOuter">
	 		<div class="winBottomInner"></div>
	 	</div>
	 </div>
	 <!--页面中部内容-结束-->
	<%@include file="/include/footer.jsp" %>
</body>
<script type="text/javascript">
	function createOrder(){
		$("#createOrderForm").submit();
	}
</script>
</html>